package com.hxd.otc.main.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 包  名 :  com.hxd.otc.main.bean
 * 类  名 :  PreviewImageBean
 * 作  者 :  胡庆岭
 * 时  间 :  2018/6/9 15:33
 * 描  述 :  ${TODO}
 */
public class PreviewImageBean implements Parcelable {
    public String imagePath;

    public PreviewImageBean(String imagePath) {
        this.imagePath = imagePath;
    }

    protected PreviewImageBean(Parcel in) {
        imagePath = in.readString();
    }

    public static final Creator<PreviewImageBean> CREATOR = new Creator<PreviewImageBean>() {
        @Override
        public PreviewImageBean createFromParcel(Parcel in) {
            return new PreviewImageBean(in);
        }

        @Override
        public PreviewImageBean[] newArray(int size) {
            return new PreviewImageBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(imagePath);
    }
}
